package com.ylkj.bus.container.report;

import com.hwl.common.CustomSerializable;
import lombok.Data;

import java.util.List;

/**
 * @Author: wengzx
 * @Date: 2025/3/28
 * @Desc:
 */
@Data
public class ContainerStatusResp implements CustomSerializable {
    /** 运行中*/
    public static final String CONTAINER_STATUS_RESP_STATE_RUNNING = "running";
    /** 已停止*/
    public static final String CONTAINER_STATUS_RESP_STATE_STOPPED = "stopped";

    private String deviceId;
    private Integer mid;
    private ContainerStatusRespParam param;
    private String timestamp;
    private String type;

    @Data
    public static class ContainerStatusRespParam implements CustomSerializable {
        private List<ContainerStatus> contStatus;
    }
    @Data
    public static class ContainerStatus implements CustomSerializable{
        private String container;
        private String cpuRate;
        private String created;
        private String diskUsed;
        private String image;
        private String ip;
        private Long lifeTime;
        private String memUsed;
        private String started;
        private String state;
        private String version;
    }
}
